package com.lch.designpattern.delegate.simple;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: liuchenhui
 * @create: 2019-04-21 14:44
 **/
public class Leader {

    private static Map<String, IEmployee> map = new HashMap<>();

    static {
        map.put("加密", new EmployeeA());
        map.put("架构", new EmployeeB());
    }

    public void doing(String command) {
        map.get(command).doing();
    }
}
